package com.database;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;

public class DatabaseConnection {
    private static final String DB_URL = "jdbc:sqlite:identifier.sqlite";

    public static Connection getConnection() throws SQLException {
        return DriverManager.getConnection(DB_URL);
    }


    // 创建 Statement 对象
    public Statement createStatement() throws SQLException {
        Connection connection = getConnection(); // 获取数据库连接
        return connection.createStatement(); // 创建并返回 Statement 对象
    }
}
